package com.itheima.test6;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * @Author:gy
 * @Date: 2025/08/31 17:12
 * @Description:
 */
public class Demo2 {
    public static void main(String[] args) throws Exception {
        //上传信息  得有一个存了数据的集合
        Properties prop = new Properties();
        prop.put("heima001","wangwu");
        prop.put("heima002","lisi");
        prop.put("heima003","maliu");
        //得有一个字符输出流
        FileWriter fw = new FileWriter("Day11\\ff.properties");
        prop.store(fw,null);
        fw.close();
    }
}
